package com.qax.task.timer.core;

/**
 * <BR> The execution status of the job BR/>
 * @author lianglei
 */
public enum JobStatus {

    INIT(0),
    RUN(1),
    CANNEL(2),
    EXPIRE(3),
    FAILURE(4),
    FINISHED(5);

    private int status;

    JobStatus(int i) {
        this.status = i;
    }

    public int getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return String.valueOf(status);
    }
}
